import { createAPI } from '@/utils/request'
// 获取车辆类型分页数据
export const _getCarModelsList = data => createAPI(`/truckType/page`, 'get', data)
// 添加车辆类型
export const _postCarModelsAdd = data => createAPI(`/truckType`, 'post', data)
// 获取车辆类型详情
export const _getCarModelsOne = id => createAPI(`/truckType/${id}`, 'get')
//  更新车辆类型
export const _putCarModelsOne = data => createAPI(`/truckType/${data.id}`, 'put', data)
// 删除车辆类型
export const _delCarModelsOne = id => createAPI(`/truckType/${id}`, 'delete')
